﻿using UnityEngine;
using System.Collections;

/// <summary>
/// 数据实体类，存储数据
/// </summary>
public class UserData
{
    public string username;
    public int index;
    public int hp;
    public bool isReady;
    public Color color;
    public Vector3 pos;

    public UserData()
    {

    }
    public UserData(string usernamse, Color color,int hp)
    {
        this.username = usernamse;
        this.color = color;
        this.hp = hp;
    }
    public UserData(string username, Vector3 pos)
    {
        this.username = username;
        this.pos = pos;
    }
    public UserData(string username, Color color,Vector3 pos)
    {
        this.username = username;
        this.pos = pos;
    }
}


public class MoveData
{
    public string username;
    public Vector2 direct;//人物移动的9方向中的一个
    public Vector3 position;//人物的位置矫正
    public Vector3 rotation;//人物旋转矫正
}

public class FireData
{
    public string username;
    public float force;
}

public class HitDat
{
    public string originUsername;//子弹发射方
    public string targetUsername;//子弹的被打中方
    public int hp;//掉血后的真实血量
}